﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sunboxsoft.ASMS.Client.Domain.WebRef
{
    public partial class EStockIncreaseBillItem
    {
        public string MaterialCode { get; set; }


        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 获取总成本
        /// </summary>
        public decimal Amount
        {
            get
            {
                return this.Cost * this.Count;
            }
        }

        public EStockIncreaseBillItem()
        {
        }

        public EStockIncreaseBillItem(Guid materialId, string materialCode, string materialName)
        {
            this.MaterialId = materialId;
            this.MaterialCode = materialCode;
            this.MaterialName = materialName;
        }
    }
}
